package com.zdya.combatdocuments.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zdya.combatdocuments.entity.Broadcast;
import com.zdya.combatdocuments.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    @Select("select id, name, username, element, seat from user where Id > 0 and username <> 'admin' group by element")
    List<User> findAllEle();
}
